LC_EVENT_KEYDOWN Home

LiteCAD generates LC_EVENT_KEYDOWN event when a user presses left mouse button while the cursor is inside of the graphics window.

The following properties are used for this event type:

Property Description
LC_PROP_EVENT_TYPE Value LC_EVENT_KEYDOWN
LC_PROP_EVENT_WND Handle to a graphics window
LC_PROP_EVENT_DRW Handle to a drawing, viewed in the window
LC_PROP_EVENT_BLOCK Handle to active block (linked to the window)
LC_PROP_EVENT_FLOAT1
LC_PROP_EVENT_FLOAT2
X,Y cursor coordinates (drawing coordinate space).
LC_PROP_EVENT_INT1 Virtual-key code of the pressed key.
LC_PROP_EVENT_INT2 Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag. For more information read description of the WinAPI WM_KEYDOWN message.
LC_PROP_EVENT_INT3 State of Shift key: 1-pressed, 0-released.
LC_PROP_EVENT_INT4 State of Ctrl key: 1-pressed, 0-released.
LC_PROP_EVENT_INT5
LC_PROP_EVENT_INT6
X, Y cursor coordinates (window coordinate space, pixels)

In order to override LiteCAD default processing of this event, within the event procedure call lcEventReturnCode function with non-zero parameter.